package cn.atzxc.qy.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 订单管理对象 order
 * 
 * @author atzxc
 * @date 2024-04-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("orders")
public class Order
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;
    /** 所属用户ID */@TableField("user_id")
    private Long userId;
    /** 任务ID */@TableField("task_id")
    private Long taskId;
    /** 骑手ID */@TableField("courier_id")
    private Long courierId;
    /** 分类ID */@TableField("category_id")
    private Long CategoryId;
    /** 退款信息ID */@TableField("refund_id")
    private Long refundId;
    /** 起始地址ID */@TableField("order_addressHome")
    private Long orderAddressHome;
    /** 终止地址ID */@TableField("order_addressGo")
    private Long orderAddressGo;
    /** 任务编号（后端生成后存入） */@TableField("order_code")
    private String orderCode;
    /** 价格 */@TableField("order_reward")
    private Long orderReward;
    /** 发布时间 */@TableField("order_publishTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderPublishtime;
    /** 截至时间 */
    @TableField("order_deadlineTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderDeadlinetime;
    /** 订单状态 */
    @TableField("order_status")
    private String orderStatus;
    /** 是否删除，当为1 的时候 说明已经删除，0为没删除 */
    @TableField("isdelete")
    private long isDelete;

    @TableField("order_remark")
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("order_createTime")
    private Date orderCreateTime;






}
